package com.jhhc.FloodForecast.Calculate.Condition.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jhhc.FloodForecast.Calculate.Condition.Pojo.Scheme;
import com.jhhc.FloodForecast.Calculate.Condition.Service.SchemeService;
import com.jhhc.FloodForecast.Calculate.Condition.Dao.SchemeMapper;

@Service
@Transactional
public class SchemeServiceImpl implements SchemeService {
    @Autowired
    private SchemeMapper SchemeMapper;

    @Override
    public List<Scheme> selectByProjectId(int ProjectId, String UserId, String ConditionId) {
        // TODO Auto-generated method stub
        return SchemeMapper.selectByProjectId(ProjectId, UserId, ConditionId);
    }

    @Override
    public int DeleteScheme(Integer pid, String userid, String fschemeid, String conditionid) {
        // TODO Auto-generated method stub
        return SchemeMapper.DeleteScheme(pid, userid, fschemeid, conditionid);
    }

    @Override
    public int InsertScheme(Scheme record) {
        // TODO Auto-generated method stub
        return SchemeMapper.InsertScheme(record);
    }

    @Override
    public int updateBy(String flag) {
        // TODO Auto-generated method stub
        return SchemeMapper.updateBy(flag);
    }

    @Override
    public int UpdateProjectId(Integer pid, String userid, String fschemeid, String conditionid) {
        // TODO Auto-generated method stub
        return SchemeMapper.UpdateProjectId(pid, userid, fschemeid, conditionid);
    }

}
